import { http } from "@/utils/http";

export const deliveryService = {
	// 获取航空列表
	getList: (params) => {
		if (params.mainOrderStatus === "all") {
			delete params.mainOrderStatus;
		}
		if (params.mainOrderNumber === "") {
			delete params.mainOrderNumber;
		}
		return http.get("/admin-api/tms/flight-info/page", params);
	},
	// 获取航空信息详情
	getFlightDetail: (params) => {
		return http.get("/admin-api/tms/flight-info/get", params);
	},
	// 提货
	pickUp: (params) => {
		return http.put("/app-api/tms/flight-info/pick-up-goods", params);
	},
	// 清点
	check: (params) => {
		return http.put("/app-api/tms/flight-info/check-goods", params);
	},
};
